﻿using Common;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemEntity;
using SystemRepository;

namespace SystemService
{
    public class SystemUserService : IScoped
    {
        private readonly ILogger<SystemUserService> _logger;

        private SystemUserRepository _systemUserRepository = null;
        public SystemUserService(SystemUserRepository systemUserRepository, ILogger<SystemUserService> logger)
        {
            _logger = logger;
            _systemUserRepository = systemUserRepository;
        }
        public SystemUserEntity Validate(string userName, string passWord, string clientId)
        {
            return _systemUserRepository.Validate(userName,passWord,clientId);
        }
    }
}
